package com.dai.designpattern.factory.simple;

/**
 * @author daijiyong
 */
public class Test {
    public static void main(String[] args) {
        ICourse course = CourseFactory.create(JavaCourse.class);
        if (course != null) {
            course.play();
        }
    }
}
